<template>
  <div class="shopcar-container">
    <div class="goods-list">
      <!--列表-->
      <div class="mui-card" v-for="(item) in tableData" :key="item.id">
        <div class="mui-card-content">
          <div class="mui-card-content-inner">
      
            <div class="info">
              <h2>优惠券信息:{{item.name}}</h2>
              <h2>优惠券详情:{{item.desc}}</h2>
              <h2>使用条件:{{item.tag}}</h2>
              <h2>满减金额:减免{{item.discount}}元</h2>
              <h2>最低消费:最低消费{{item.min}}元</h2>
              <p>
                <!-- <numbox :count="item.number" :id="item.id"></numbox><br> -->
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "about",
  data() {
    return {
      tableData: []
    };
  },
  created() {
    this.getUser();
  },
  methods: {
    getUser() {
      var $this = this;
      this.axios({
        method: "GET",
        url: "http://localhost:8085/ecCoupon/conponList",
        params:{
          pageNum: 1,
          pageSize: 6,
          status:1,
        }
      }).then(function(res) {
        $this.tableData = res.data.obj.list;
      });
    }
  }
};
</script>

<style scoped lang="scss">
.shopcar-container {
  background-color: #eee;
  overflow: hidden;
  .goods-list {
    .mui-card-content-inner {
      display: flex;
      align-items: center;
    }
    img {
      width: 120px;
      height: 120px;
    }
    h2 {
      font-size: 13px;
    }
    .info {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .price {
        color: red;
        font-weight: bold;
      }
    }
  }
  .jiesuan {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .red {
    color:red;
  }
}

</style>
